<{include file="Public/top.html" }>
</head>
<body>
    <div id="warpper">
        <div class="content">
            <div class="location">商户管理</div>
            <{include file= "Business/nav.html"}>
            <div class="filedSet" style="padding-bottom: 0;">
                <div class="search">
                    <form action="" method="get" id="searchForm" class="ui-form reportForm">
                        <input name="m" type="hidden" value="<{$module}>">
                        <input name="c" type="hidden" value="<{$controller}>">
                        <input name="a" type="hidden" value="<{$action}>">

                        <input name="p" id="page" type="hidden" value="<{$page|default:1}>">
                        <input name="limit" id="limit" type="hidden" value="<{$limit|default:10}>">
                        <input name="ofield" id="ofield" type="hidden" value="<{$ofield}>">
                        <input name="otype"  id="otype"  type="hidden" value="<{$otype}>">




                        <div class="ui-form-item inline-block">
                            <label class="ui-label">商户搜索</label>
                            <input type="text" name="keyword" value="<{$keyword}>" class="ui-text bg-text keyword"  />
                        </div>
                        <div class="ui-form-item inline-block">
                            <button type="submit" class="ui-button" onclick="LayerShow();">查询</button>
                            <a href="<{U('restaurantAdd')}>" class="ui-button" style="display: inline-block;text-align: center" onclick="LayerShow();">添加商户</a>
                        </div>
                    </form>
                </div>
            </div>
            <!--表格内容-->
            <div class="mainGrid">
                <table class="ui-table ui-body">
                    <thead>
                        <tr>
                            <th class="pct10">ID</th>
                            <th class="pct15">商户名</th>
                            <th class="pct20">门店数量</th>
                            <th class="pct10">核销员数量</th>
                            <th class="pct10">卡券种类</th>
                            <th class="pct10">发放卡券数量</th>
                            <th class="pct10">核销数量</th>
                            <th class="pct10">核销率</th>
                            <th class="pct20 last-col">操作</th>
                        </tr>
                    </thead>
                    <tbody>
                    <{foreach from = $list item = item}>
                    <tr>
                        <td><{$item.id}></td>
                        <td><a href="<{u('storeList/?id='|cat:$item['id'])}>"> <{$item.restaurantName}></a></td>
                        <td><{$item.storeNum}></td>
                        <td><{$item.verificationNum}></td>
                        <td><{$item.cardinfoNum}></td>
                        <td><{$item.launchNum}></td>
                        <td><{$item.consume_num}></td>
                        <td><{$item.consume_percent}>%</td>
                        <td class="ta_l">
                            <div class="handler">
                                <a href="<{u('restaurantEdit/?id='|cat:$item['id'])}>" onclick="LayerShow();">修改</a>
                                <span class="sep">|</span>
                                <a href="<{u('storeAdd/?id='|cat:$item['id'])}>" onclick="LayerShow();">门店</a>
                                <span class="sep">|</span>
                                <{if $item.status == $smarty.const.ENABLE_ENABLE}>
                                <a href="<{u('restaurantUpdate/?id='|cat:$item['id'])}>" onclick="if(!confirm('确定不启用该商户么？'))return false;">已启用</a>
                                <{else}>
                                <a href="<{u('restaurantUpdate/?id='|cat:$item['id'])}>" onclick="if(!confirm('确定启用该商户么？'))return false;">未启用</a>
                                <{/if}>
                            </div>
                        </td>
                    </tr>
                    <{/foreach}>
                    </tbody>
                </table>
            </div>
            <!--描述：分页-->
            <div class="pagination">
                <{include file="Public/page.html"}>
            </div>
        </div>
    </div>
</body>
<{include file="Public/foot.html" }>